package com.biz.service.basic;

import com.biz.model.Pmodel.User;
import com.biz.model.Pmodel.basic.Brand;
import com.biz.model.Pmodel.basic.BrandSpeed;
import com.biz.model.Pmodel.basic.Category;
import com.biz.model.Pmodel.basic.Pbrand;
import com.biz.service.base.BaseServiceI;
import com.framework.model.Paging;
import com.framework.model.Params;

import java.util.List;
import java.util.Map;

/**
 * 商户Service
 * Created by liujiajia on 2017/1/6.
 */
public interface MerchantServiceI extends BaseServiceI<Object> {

    /**
     * 根据参数加载商户Grid
     * @param parm
     * @return
     */
    Paging findMerchantGrid(Params parm);

    /**
     * 根据商户id 加载商户
     * @param ids
     * @return
     * @throws Exception
     */
    Brand getMerchantById(String ids) throws Exception;



    /**
     * 新增或者更新商户
     * @param pbrand
     * @throws Exception
     */
    String saveOrUpdatePbrand(Pbrand pbrand)throws Exception;

    /**
     * 根据id获取商户表
     * @param id
     * @return
     * @throws Exception
     */
    Pbrand getPbranById(String id)throws Exception;

    /**
     * 删除数据
     * @param ids
     * @return
     * @throws Exception
     */
    String delGridById(String ids)throws Exception;

    int checkLoginName(String loginName)throws Exception;


}
